﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Data;

namespace ESC.Designer.Resources
{
    class MoveTaskStatusConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            //1 等待  2 完成
            if (value.ToString() == "1")
            {
                return "等待";
            }
            else if (value.ToString() == "2")
            {
                return "完成";
            }
            else if (value.ToString() == "3")
            {
                return "运输中";
            }
            else if (value.ToString() == "4")
            {
                return "已撤銷";
            }
            else if (value.ToString() == "6")
            {
                return "已退料";
            }
            else
            {
                return "已刪除";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }

    
}
